package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dataobject.ElevationHis;
import com.bbzn.device.client.dao.history.ElevationHisMapper;
import com.bbzn.device.client.service.ElevationHisService;

@Service
public class ElevationHisServiceImpl implements ElevationHisService {

    @Resource
    private ElevationHisMapper elevationHisMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return elevationHisMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ElevationHis record) {
        return elevationHisMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(ElevationHis record) {
        return elevationHisMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(ElevationHis record) {
        return elevationHisMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(ElevationHis record) {
        return elevationHisMapper.insertSelective(record);
    }

    @Override
    public ElevationHis selectByPrimaryKey(Long id) {
        return elevationHisMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ElevationHis record) {
        return elevationHisMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ElevationHis record) {
        return elevationHisMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ElevationHis> findByAll(ElevationHis elevationHis) {
        return elevationHisMapper.findByAll(elevationHis);
    }

    @Override
    public int updateBatch(List<ElevationHis> list) {
        return elevationHisMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<ElevationHis> list) {
        return elevationHisMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<ElevationHis> list) {
        return elevationHisMapper.batchInsert(list);
    }

    @Override
    public int deleteByImei(String imei) {
        return elevationHisMapper.deleteByImei(imei);
    }
}

